import base from '../../base_url';
const serve = {
  // 上传
  fileUpload(id, params) {
    return id.post(`${base.host}` + "annexFile/saveFile", params)
  },
    // 获取选项内容接口
  getChooseData(id, params) {
    return id.get(`${base.host}` + "inquires/getChooseData", { params: params })
  },
     // 保存问询建议
  saveInquiresInfo(id, params) {
    return id.post(`${base.host}` + "inquires/saveInquiresInfo", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
 // 查询问询与建议详情接口
  getInquiresInfo(id, params) {
    return id.get(`${base.host}` + "inquires/getInquiresInfo", { params: params })
  },
  // 确认回复问询建议
  replyInquiresInfo(id, params) {
    return id.post(`${base.host}` + "inquires/replyInquiresInfo", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  // 资料中心产品树
  datacenterpromenu(id, params) {
    return id.get(`${base.host}` + "product/getProductTypeTree", { params: params })
  },
  // 资料中心
  getDownType(id, params) {
    return id.get(`${base.host}` + "down/getDownType", { params: params })
  },
    // 获取资料类型
  getAllDownCertification(id, params) {
    return id.post(`${base.host}` + "down/getAllDownCertification", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
     // 根据条件获取所有的样本
  getAllDownCatalog(id, params) {
    return id.post(`${base.host}` + "down/getAllDownCatalog", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
    // 获取样本详情接口
  getAllDownCertification(id, params) {
    return id.get(`${base.host}` + "down/getDownCatalogDetail", params)
  },
    // 获取所有的手册
  getAllDownManual(id, params) {
    return id.post(`${base.host}` + "down/getAllDownManual", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
    // 获取手册详情接口
  getAllDownCertification(id, params) {
    return id.get(`${base.host}` + "down/getDownManualDetail", params)
  },
    // 根据条件获取所有的软件
  getAllDownSoftware(id, params) {
    return id.post(`${base.host}` + "down/getAllDownSoftware", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
    // 获取软件详情接口
  getDownSoftWareDetail(id, params) {
    return id.get(`${base.host}` + "down/getDownSoftWareDetail", params)
  },
    // 根据条件获取所有的CAD
  getAllDownCadindex(id, params) {
    return id.post(`${base.host}` + "down/getAllDownCadindex", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
   // 获取CAD详情接口
  getAllDownCadindex(id, params) {
    return id.get(`${base.host}` + "down/getDownCadindexDetail", params)
  },
  // 根据条件获取所有的认证
  getAllDownCertification(id, params) {
    return id.post(`${base.host}` + "down/getAllDownCertification", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  // 获取elearning课程
  getTrainingPage(id, params) {
    return id.post(`${base.host}` + "training/getTrainingPage", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  // 获取fatec课程
  getFatecCoursePage(id, params) {
    return id.post(`${base.host}` + "training/getFatecCoursePage", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  },
  // 获取fatec课程详情
  getFatecCourseDetail(id, params) {
    return id.post(`${base.host}` + "training/getFatecCourseDetail", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  }, 
   //elearning课程详情
  getElenringCourseDetail(id, params) {
    return id.post(`${base.host}` + "training/getElenringCourseDetail", params,{headers: {'Content-Type':'application/x-www-form-urlencoded'}})
  }
}

export default serve